package thread;

public class PriorityDemo {
    public static void main(String[] args) {
        Thread min = new Thread(){
            public void run(){
                for (int i = 0;i<10000;i++){
                    System.out.println("min");
                }

            }
        };
        Thread max = new Thread(){
            public void run(){
                for (int i = 0;i<10000;i++){
                    System.out.println("max");
                }

            }
        };
        Thread norm = new Thread(){
            public void run(){
                for (int i = 0;i<10000;i++){
                    System.out.println("norm");
                }

            }
        };

        min.setPriority(1);
        max.setPriority(10);
        min.start();
        max.start();
        norm.start();

    }
}
